<?php

namespace App\Http\Controllers\Lost;

use App\Repository\LostRepository;
use Illuminate\Http\Request;

use App\Http\Controllers\Controller;

class HomeController extends Controller
{
    protected $lost;

    public function __construct(LostRepository $lost)
    {
        $this->lost = $lost;
    }

    public function index()
    {
        $js = app('wechat')->js;

        return view('app.lost.index', ['js' => $js]);
    }

    public function list()
    {
        return $this->lost->getAudit();
    }
}
